﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucListMenu.ascx.cs" Inherits="Wedding_ucControl_ucListMenu" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<style type="text/css">
    .style1
    {
        height: 20px;
        text-align: center;
    }
</style>
<div class="box4" style="margin-top: 15px">
    <div class="box_main4">
        <div class="box_pro">
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td>
                        <table style="width: 100%; margin-left:10px">
                            <asp:ListView ID="lvMenu" runat="server" GroupItemCount="4" GroupPlaceholderID="layoutTemplate"
                                ItemPlaceholderID="groupPlaceholder" OnItemDataBound="lvMenu_ItemDataBound">
                                <LayoutTemplate>
                                    <table id="layoutTemplate" runat="server" border="0" cellpadding="0" cellspacing="0">
                                    </table>
                                </LayoutTemplate>
                                <GroupTemplate>
                                    <tr>
                                        <div id="groupPlaceholder" runat="server">
                                        </div>
                                    </tr>
                                </GroupTemplate>
                                <ItemTemplate>
                                    <td >
                                        <asp:HyperLink ID="lnkItemDetails" runat="server" NavigateUrl="">
                                            <div class="productItemStyle" price='<%# Eval("Price") %>' matchedprice='0' code='<%# Eval("IDMenu") %>'>
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td align="center" style="padding: 5px">
                                                            <table>
                                                                <tr>
                                                                    <tr>
                                                                        <td align="center" id="rollover">
                                                                            <a rel="lightbox-mygallery" runat="server" title='<%# Eval("MenuName") %>' href='<%# "~/ImageProcess.ashx?file=" + "~/Admin/img/ImageMenu/" + Eval("ImageURL")  %>'>
                                                                                <asp:Image ID="img" runat="server" ImageUrl='<%# "~/ImageProcess.ashx?file=" + "~/Admin/img/ImageMenu/" + Eval("ImageURL") + "&width=120&heigh=100&dd=true" %>'
                                                                                    AlternateText="No Image" />
                                                                            </a>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td align="center">
                                                                            <p>
                                                                                <asp:HyperLink ID="hyp" runat="server" Text=' <%# Eval("MenuName") %>'></asp:HyperLink>
                                                                            </p>
                                                                            <p>
                                                                                <span style="color: #d80e01; font-weight: bold; font-size: 20px">
                                                                                    <asp:Label ID="lbPrice" runat="server" Text="Label"></asp:Label>
                                                                                    <%# DataBinder.Eval(Container.DataItem, "Price") %>
                                                                                </span>
                                                                            </p>
                                                                        </td>
                                                                    </tr>
                                                                    <%-- <tr>
                                                                        <td align="center">
                                                                            <table border="0" cellspacing="3" cellpadding="0">
                                                                                <tr>
                                                                                    <td width="1" class="imglink">
                                                                                        <asp:HyperLink ID="HyperLink2" runat="server" ToolTip="Add Menu">
                                                                                            <asp:ImageButton ID="btnImage" runat="server" CommandName="AddMenu" CommandArgument='<%# Eval("IDMenu") %>'
                                                                                                ImageUrl="~/Wedding/images/add-notes.png" Width="32px" Height="32px" s />
                                                                                        </asp:HyperLink>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </td>
                                                                    </tr>--%>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </asp:HyperLink>
                                    </td>
                                </ItemTemplate>
                            </asp:ListView>
                        </table>
                    </td>
                </tr>
                <tr class="paging">
                    <td class="style1">
                        <asp:DataPager ID="DataPagerImages" runat="server" PagedControlID="lvMenu" PageSize="12">
                            <Fields>
                                <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="False" ShowNextPageButton="False"
                                    ShowPreviousPageButton="False" />
                                <asp:NumericPagerField />
                                <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="False" ShowNextPageButton="False"
                                    ShowPreviousPageButton="False" />
                            </Fields>
                        </asp:DataPager>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>
